package com.beamfield.dao.lab;

import com.beamfield.model.LabSample;
import com.beamfield.model.LabSampleExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface LabSampleMapper {
    int countByExample(LabSampleExample example);

    int deleteByPrimaryKey(Long id);

    int insert(LabSample record);

    int insertSelective(LabSample record);

    List<LabSample> selectByExample(LabSampleExample example);

    LabSample selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(LabSample record);

    int updateByPrimaryKey(LabSample record);

    LabSample selectBySample_no(@Param("sample_no")String sample_no);

    List<LabSample> getSampleList(@Param("offset")Integer offset, @Param("limit")Integer limit,
                                  @Param("sample_name")String sample_name, @Param("sample_date")String sample_date,
                                  @Param("beam_id")Long beam_id);

    int getCount(@Param("sample_name")String sample_name, @Param("sample_date")String sample_date, @Param("beam_id")Long beam_id);

    List<LabSample> getAllSample(@Param("beam_id")Long beam_id);
}